/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/api/page/findAllPage', controller.page.findAllPage);
  router.post('/api/page/saveEditPage', controller.page.saveEditPage);
  router.get('/api/role/findAllRole', controller.role.findAllRole);
  router.post('/api/role/saveEditRole', controller.role.saveEditRole);
  router.post('/api/user/login', controller.user.login)
};
